package cn.db101.fairy.entity

import com.fasterxml.jackson.annotation.JsonFormat
import com.mybatisflex.annotation.Id
import com.mybatisflex.annotation.KeyType
import com.mybatisflex.annotation.Table
import java.time.LocalDateTime

@Table("t_fairy_detail")
open class FairyDetail {

    @Id(keyType = KeyType.Auto)
    val id: Int = 0

    var name: String? = null

    var title: String? = null

    var categoryId: Int? = null

    var content: String? = null

    var views: Int? = null

    var collects: Int? = null

    var thumbnail: String? = null

    var ttsUrl: String? = null

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    var createTime: LocalDateTime? = null

}
